package genome;

public abstract class Grammar {

	protected int point = 0;
	private int loop = 0;
	protected int mx_depth;
	protected GGT g;

	public Grammar() {
		super();
	}

	public void setGGT(GGT pG) {
		g = pG;
		point = 0;
		loop = 0;
		mx_depth = pG.maxDepth;
	}
	
	public abstract double eval();
	
	public abstract String evalS();

	public void checkPoint() {
		if(!(point<g.size)){
			point = 0; //loop
			loop++;
		}
	}

}